package com.week1.day03;

public class day03utils {

    //立方体表面积
    public static int cubeArea(int a, int b, int h) {
        return (a * b + b * h + a * h) * 2;
    }

    //判断一个数是否是质数
    public static boolean isPrimeNumber(int num) {
        boolean flag = true;
        for (int i = 2; i < num; i++) {
            if (num % i == 0) {
                flag = false;
                break;
            }
        }
        return flag;
    }
}
